Documentation - ZHLT 2.5.3 Custom Build 1.7This is a custom build of Zoner's Half-Life Tools, version 2.5.3. Sean (aka "Zoner") is NOT responsible for the tools in this zip. The purpose of this document is to highlight the differences between the generic ZHLT 2.5.3 and this version, and also to serve as a usage manual. Revised 08/12/`02 Anthony Moore These improvements are largely the work of many other people. In particular, the following individuals have made significant contributions:
Contents of this file:
It is recommended that these tools be installed beside or over a copy of the original Zoner's Half-Life Tools, Version 2.5.3, as this zip does not contain all the standard documentation used by a mapper. Installation is quite simple; all you need to do is extract the entire contents of this zip file to some location on your hard drive. This does not have to be the same location as ZHLT 2.5.3, if you find it convenient to install elsewhere. Additionally, you need to update the paths your compile controller is using. If you are using Worldcraft/Hammer to compile, this can be done in the Build Programs tab of Worldcraft configuration (which is available under the Tools, Options... menu). If you would rather not do this, then you can always create a new configuration under Expert compile mode and manually specify the paths to the build tools, instead of using the special $csg_exe, $bsp_exe, etc... variables supplied by Worldcraft.
The The main point of this texture is to use it on faces that the player
would under normal circumstances never see, so that those faces
will not add to the w_poly count and lower the fps (frames per second)
rate. (That doesn't mean you can't use it for whatever you want,
although.) You can also use the Note, that:
If you wish to use the
Automatic wad detection is a simple utility that will exclude any wadfiles from the bsp that aren't in use by the map. This gives you, the mapper, the ability to add any assortment of wadfiles you wish, and yet only have those that are actually used by the map included in the .bsp file. If you wish to enable this feature, simply use the
This 'mode' is on by default in hlcsg, and does not require any interaction from the user at all. You can remain blissfully ignorant of this feature if you so wish. Clipnodes are 'planes' that restrict the player movement. They are placed along the walls and floors of your level, so that they player cannot pass though them. However, like everything else in the Half-Life universe, they are limited, and will max out with compile errors if you end up using too many of them. In this build of the tools, hlcsg will analyse how the clipnodes are being used in your map. If it thinks that it can get away with not using clipnodes in any particular situation (such as in func_illusionaries which don't need clipnodes), then hlcsg will strip them away from the level. This means that by default, your clipnode counts will be lower than normal. However, it doesn't automatically mean that you will never see another MAX_MAP_CLIPNODES error in your life, it just means it's less likely to happen in the first place. If you believe that this feature is causing you
troubles, than you have the option of turning it off. To do so, simply add
the
Really horrible HLRAD hack by Adam Foster It's a hack to HLRAD that allows a different colour for the diffuse light from a light_environment, more accurately mimicking real-world lighting (yellow sun, blue sky). It uses a new key, '_diffuse_light', in the light_environment - this gives the colour and intensity of the diffuse lighting, ie light from the sky, not from the sun. It should be fully backwards-compatible with older maps - if there's no '_diffuse_light' key, it uses the intensity from the standard '_light' key. Hope somebody finds it useful... - Adam Foster afoster@compsoc.man.ac.uk
This is a feature for hlrad written by Jussi Kivilinna (hullu@unitedadmins.com). It allows the mapper to define the transparency and colouring of brush based entities for the purposes of the shadows that those brushes cast. To use this feature, the brush based entity must have its opaque flag
set in To customise this shadow, take smart-edit off in Worldcraft, and add a
keyvalue called Additionally, colour may be added to this shadow. Instead of defining
one value, define 3, representing the RGB values of the shadow (on the
same scale). For example, if I wanted a brush to cast a red shadow (for
say, a red stain glass window effect), i would use the value If you specify any value above By default, none of these will take effect on bounced light; for this
to occur, you must specify the
Release Information Whats the purpose of this feature? The idealistic solution to this would be to make it so that Worldcraft stores which wad files are in use for any given game configuration, but that's not as easy as it would first appear. autolycus of the Valve-ERC states that "This is one of the most requested things, so yes, we know about it. I've requested the feature several times. You can be assured, Mr. Speyrer knows that this would be a handy thing.". The solution The specific syntax for the file is the following: configuration_name Where:
-wadconfig configuration_name .
Lets take an example. Say i wanted to create a configuration called 'my_wads'. It has 3 standard wadfiles in it: 'halflife.wad', 'liquids.wad' and 'xeno.wad', all of which can be found in the valve directory, because they all came with Half-Life. It also has a custom wad created by me called 'mywad.wad', which I want to compile into the .bsp file, which also happens to be in the valve directory. My configuration might look something like this: my_wads Now, when i run hlcsg.exe when i compile my map, i put If you really don't understand the wad.cfg file syntax, then don't worry. You don't have to use it. However, it does come with some example configurations already in it; just open it in notepad and see if you can get the hang of it, because it can be quite handy.
This is a simple little point-based entity that you can place in your map, from which you can select standard compile settings instead of using the command line switches. If your .fgd file does not have this entity in it, you can add the following code to the end of your .fgd (compatible with all versions of Worldcraft): @PointClass size(-8 -8 0, 8 8 32) = info_compile_parameters : "Compile Options" [ hlcsg(choices) : "HLCSG" : 1 = [ 1 : "Normal" 2 : "Onlyents" 0 : "Off" ] hlbsp(choices) : "HLBSP" : 1 = [ 0 : "Off" 1 : "Normal" 2 : "Leakonly" ] hlvis(choices) : "HLVIS" : 2 = [ 0 : "Off" 1 : "Fast" 2 : "Normal" 3 : "Full" ] hlrad(choices) : "HLRAD" : 1 = [ 0 : "Off" 1 : "Normal" 2 : "Extra" ] texdata(string) : "Texture Data Memory (in KB)" : "4096" estimate(choices) : "Estimate Compile Times?" : 0 = [ 0: "Yes" 1: "No" ] bounce(integer) : "Number of radiosity bounces" : 0 ambient(string) : "Ambient world light (0.0 to 1.0, R G B)" : "0 0 0" smooth(integer) : "Smoothing threshold (in degrees)" : 0 dscale(integer) : "Direct Lighting Scale" : 1 chop(integer) : "Chop Size" : 64 texchop(integer) : "Texture Light Chop Size" : 32 hullfile(string) : "Custom Hullfile" priority(choices) : "Priority Level" : 0 = [ 0 : "Normal" 1 : "High" -1 : "Low" ] wadautodetect(choices) : "Wad Auto Detect" : 0 = [ 0 : "Off" 1 : "On" ] wadconfig(string) : "Custom Wad Configuration" : "" verbose(choices) : "Verbose compile messages" : 0 = [ 0 : "Off" 1 : "On" ] noclipeconomy(choices) : "Strip Uneeded Clipnodes?" : 1 = [ 1 : "Yes" 0 : "No" ] nocliphull(choices) : "Generate clipping hulls" : 0 = [ 0 : "Yes" 1 : "No" ] noskyclip(choices) : "No Sky Clip" : 0 = [ 1 : "On" 0 : "Off" ] sparse(choices) : "Vismatrix Method" : 2 = [ 0 : "No Vismatrix" 1 : "Sparse Vismatrix" 2 : "Normal" ] circus(choices) : "Circus RAD lighting" : 0 = [ 0 : "Off" 1 : "On" ] ]
The info_texlights entity can act as a replacement for a lights.rad file, in that it simply resides within the map as a point based entity. The usefulness of this is that each map can have its own unique ambient lighting applied to it, and those settings will travel with the map and not affect any other maps. Usage of the entity is much like that of the multimanager. To add an entry, take smart-edit off in Worldcraft and add key value pairs in manually; the key should contain the name of the texture to apply lighting to, and the value a set of numbers representing the red green blue lumionsity(brightness) of the texture, just as you would in the lights.rad file. Notes: The presence of this file will not override the lights.rad, both the values specified in this entity and the lights.rad file will be used by hlrad. Thanks goes out to Laurie Cheers from the Spirit of Half-Life mod for the idea behind this entity. If your .fgd does not contain an info_texlights entity, then you can add this line of code to your .fgd yourself: @PointClass color(255 128 0) = info_texlights : "Texture Light Config" []
All texlights can now pulse, flicker, and switch on and off, just like normal light entities. To use this feature, you need to set the 'style' value on the brush entity which has the light-emitting texture. If your .fgd doesn't include style values, you can add the following to any entity... style(choices) : "Texlight style" : 0 = [ 0 : "Normal" -3: "Grouped" 10: "Fluorescent flicker" 2 : "Slow, strong pulse" 11: "Slow pulse, noblack" 5 : "Gentle pulse" 1 : "Flicker A" 6 : "Flicker B" 3 : "Candle A" 7 : "Candle B" 8 : "Candle C" 4 : "Fast strobe" 9 : "Slow strobe" 12: "Underwater" ]The Grouped setting is essentially a hack to allow your texlights to be switchable. To use it, create a brush entity with texlights on it, and set its style to Grouped; then create a light entity with the same name as the brush entity. Hlrad will now pretend that the light emitted by the texlight is "really" being emitted by your light entity! In other words, turning the light on and off will now turn the texlights on and off, too. (You'll probably want to set the brightness of the light entity to 0.01, so that it emits no light of its own.) (This trick is unnecessary if you're using Spirit of Half-Life, which supports switchable texlights directly.)
Maximum Distance Visibility (MDV) is a new feature that prevents leafs beyond a certain distance from being rendered (or even sent to the renderer at all). In conjunction with fog, it can become the ultimate catalyst when building and compiling large maps, especially those with open areas. However, due to the nature of the calculations, not all leaves beyond a certain distance are guaranteed to be prevented from being rendered; but those that are within the maximum distance are gauranteed to be rendered. To use this feature, include the -maxdistance # parameter with your hlvis
command line, where # is the
maximum distance in units. There is a small side effect when using the Maximum Distance feature. hlrad relies heavily on the visibility matrix to speed up lighting operations. As such, a normal rad of the map will result in ackward, "cut off" lighting. This problem is easily solved, however it requires that you use Adam Foster's special version of hlrad, which accomodates for the MDV lighting problem. (ed. Note: The version of hlrad included in this release is the aforementioned hlrad.) When you use the -maxdistance parameter, an
extra file named <mapname>.vdt that contains the real
visibility matrix (i.e without any MDV performed) will be created. Adam's
hlrad will use this file to correctly light the map. Skyler 'Zipster' York - (zipster89134@hotmail.com)
|